{include file="header.php"}

<ul class="toolbar clearfix">
	<li class="left-side"><a class="link-button link-button-red" href="{$site_url}?controller=user&action=index">Back</a></li>
</ul>

<h2>Edit User : {$user.firstname} {$user.lastname}</h2> 
<form action="index.php?controller=user&action=update" method="post">
	<table>
		
		<tr>
			<td width="150"><label for="username">Username</label></td>
			<td><input type="text" name="username" id="username" class="inputbox" disabled="disabled" value="{$user.username}" /></td>
		</tr>
		
		<tr>
			<td><label for="firstname">Firstname</label></td>
			<td><input type="text" name="firstname" id="firstname" class="inputbox" value="{$user.firstname}" /></td>
		</tr>
		
		<tr>
			<td><label for="lastname">Lastname</label></td>
			<td><input type="text" name="lastname" id="lastname" class="inputbox" value="{$user.lastname}" /></td>
		</tr>
		
		<tr>
			<td><label for="email">E-mail</label></td>
			<td><input type="text" name="email" id="email" class="inputbox" value="{$user.email}" /></td>
		</tr>
		
		<tr>
			<td><label for="password">Password</label></td>
			<td><input type="password" name="password" id="password" class="inputbox" value="" /></td>
		</tr>
		
		<tr>
			<td><label for="re-password">Repeat password</label></td>
			<td><input type="password" name="re-password" id="re-password" class="inputbox" value="" /></td>
		</tr>
		
		<tr>
			<td><label for="no_telefon">Telephone</label></td>
			<td><input type="text" name="no_telefon" id="no_telefon" class="inputbox" value="{$user.no_telefon}" /></td>
		</tr>
		
		<tr>
			<td><label for="jantina">Gender</label></td>
			<td><input type="text" name="jantina" id="jantina" class="inputbox" value="{$user.jantina}" /></td>
		</tr>
		
		<tr>
			<td><label for="published">Published?</label></td>
			<td>
				<select name="published" id="published" class="inputbox select">
					{if $user.published == 1}
					<option value="1" selected="selected">Yes</option>
					<option value="0">No</option>
					{else}
					<option value="1">Yes</option>
					<option value="0" selected="selected">No</option>
					{/if}
				</select>
			</td>
		</tr>
		
		<tr>
			<td colspan="2">
				<input type="hidden" name="id" id="id" value="{$user.id}" />
				<input type="submit" name="submit" id="submit" value="Update User" class="button" />
			</td>
		</tr>
		
	</table>
</form>

{include file="footer.php"}